﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.ServiceModel.Description;

namespace MatchCounterConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            MatchCounterServiceReference.MatchCounterSoapServiceClient client =
                new MatchCounterServiceReference.MatchCounterSoapServiceClient();

            using (client) 
            {
                Console.WriteLine(client.GetMatches("asdasd", "asd")); 
            }
            //Uri baseAddress = new Uri("localhost:5099/");
            //WebServiceHost serviceHost = new WebServiceHost(typeof(MatchRestService),baseAddress);
            //ServiceEndpoint endPoint = serviceHost.AddServiceEndpoint(typeof(IMatchRestService), new BasicHttpBinding(), "http://localhost:5099/MatchRestService");
            //ServiceDebugBehavior stp = serviceHost.Description.Behaviors.Find<ServiceDebugBehavior>();

            //stp.HttpHelpPageEnabled = false;
            //serviceHost.Open();
            //Console.WriteLine("WCF Service is running...");
            //Console.ReadLine();
            //serviceHost.Close();

   
            //Console.WriteLine("WCF Service is closed");
        }
    }
}
